import CancelRunVolumeModal from "../common/CancelRunVolumeModal";
import CancelVoidOrderModal from "../common/CancelVoidOrderModal";
import ExportOrderExcelModal from "../common/ExportOrderExcelModal";
import GetWaybillNumberModal from "../common/GetWaybillNumberModal";
import BatchInputLogisticNo from '../common/BatchInputLogisticNo';
import ImportYuncangOrderModal from '../common/ImportYuncangOrderModal';
import IntelligentMergeOrdersModal from "../common/IntelligentMergeOrdersModal";
import IntelligentSplittingStrategy from "../common/IntelligentSplittingStrategy";
import LogisticsBackhaulModal from "../common/LogisticsBackhaulModal";
import ManuallyOrdersModal from "../common/ManuallyOrdersModal";
import ManuallySyncOrdersModal from "../common/ManuallySyncOrdersModal";
import MergeOrdersModal from "../common/MergeOrdersModal";
import OrderReturnReviewModal from "../common/OrderReturnReviewModal";
import SelectShippingWarehouseModal from "../common/SelectShippingWarehouseModal";
import SetExpressModal from "../common/SetExpressModal";
import SetForcedSendGoodsModal from "../common/SetForcedSendGoodsModal";
import SetOrderLabelModal from "../common/SetOrderLabelModal";
import SetOrderNothsModal from "../common/SetOrderNothsModal";
import SetOrderStatusForErrorModal from "../common/SetOrderStatusForErrorModal";
import SetOrderStatusForNormalModal from "../common/SetOrderStatusForNormalModal";
import SetPackageAndGiveawayModal from "../common/SetPackageAndGiveawayModal";
import SetRunVolumeModal from "../common/SetRunVolumeModal";
import SetSellerNothsModal from "../common/SetSellerNothsModal";
import SplitOrderModal from "../common/SplitOrderModal";
import SupplierMatchingModal from "../common/SupplierMatchingModal";
import UnmatchedProductDetailsModal from "../common/UnmatchedProductDetailsModal";
import UpdateGoodsModal from "../common/UpdateGoodsModal";
import UpdateGoodsSwitchModal from "../common/UpdateGoodsSwitchModal";
import VoidOrderModal from "../common/VoidOrderModal";
import VertifyExportCode from "@/views/components/VertifyExportCode";
import AutoExecute from "../common/IntelligentStrategy/AutoExecute";
import ManualExecute from "../common/IntelligentStrategy/ManualExecute";
import BatchPayModal from "../common/BatchPayModal"
import BatchShip from '../common/BatchShip';
import BatchPrint from '../common/BatchPrint';
import AllPayModal from "../common/AllPayModal";
import WeightRecalculation from "../common/WeightRecalculation";
import DeliveryPrint from '../common/DeliveryPrint';
import MatchYuncangOrderModal from "../common/MatchYuncangOrderModal";

//弹框集合
function ActionMap(props) {
	const { ModalProps, modalName } = props;
	const ModalComp = {
		/** 手工下单 */
		'ManuallyOrdersModal': <ManuallyOrdersModal {...ModalProps} />,

		/** 手工同步订单 */
		'ManuallySyncOrdersModal': <ManuallySyncOrdersModal {...ModalProps} />,

		/** 取消跑量 */
		'CancelRunVolumeModal': <CancelRunVolumeModal {...ModalProps} />,

		/** 维护导出表字段信息 */
		'ExportOrderExcelModal': <ExportOrderExcelModal {...ModalProps} />,

		/** 订单返审核 */
		'OrderReturnReviewModal': <OrderReturnReviewModal {...ModalProps} />,

		/** 批量选择发货仓 */
		'SelectShippingWarehouseModal': <SelectShippingWarehouseModal {...ModalProps} />,

		/** 未匹配商品明细 */
		'UnmatchedProductDetailsModal': <UnmatchedProductDetailsModal {...ModalProps} />,

		/** 获取运单号 */
		'GetWaybillNumberModal': <GetWaybillNumberModal {...ModalProps} />,

		/** 批量输入运单号 */
		'BatchInputLogisticNo': <BatchInputLogisticNo {...ModalProps} />,

		/** 导入云仓运单号 */
		'ImportYuncangOrderModal': <ImportYuncangOrderModal {...ModalProps} />,

		/** 云仓单号匹配 */
		'MatchYuncangOrderModal': <MatchYuncangOrderModal {...ModalProps} />,

		/** 物流回传 */
		'LogisticsBackhaulModal': <LogisticsBackhaulModal {...ModalProps} />,

		/** 批量修改快递 */
		'SetExpressModal': <SetExpressModal {...ModalProps} />,

		/** 设置强制发货 */
		'SetForcedSendGoodsModal': <SetForcedSendGoodsModal {...ModalProps} />,

		/** 修改订单备注 */
		'SetOrderNothsModal': <SetOrderNothsModal {...ModalProps} {...ModalProps?.item} />,

		/** 修改卖家备注 */
		'SetSellerNothsModal': <SetSellerNothsModal {...ModalProps} />,

		/** 转正常单 */
		'SetOrderStatusForNormalModal': <SetOrderStatusForNormalModal {...ModalProps} />,

		/** 转异常单 */
		'SetOrderStatusForErrorModal': <SetOrderStatusForErrorModal {...ModalProps} />,

		/** 设置包装和赠品 */
		'SetPackageAndGiveawayModal': <SetPackageAndGiveawayModal {...ModalProps} />,

		/** 批量设置跑量订单 */
		'SetRunVolumeModal': <SetRunVolumeModal {...ModalProps} />,

		/** 供应商匹配 */
		'SupplierMatchingModal': <SupplierMatchingModal {...ModalProps} />,

		/** 作废订单 */
		'VoidOrderModal': <VoidOrderModal {...ModalProps} />,

		/** 取消作废订单 */
		'CancelVoidOrderModal': <CancelVoidOrderModal {...ModalProps} />,

		/** 批量修改商品 */
		'UpdateGoodsModal': <UpdateGoodsModal {...ModalProps} />,

		/** 批量修改商品 换货 */
		'UpdateGoodsSwitchModal': <UpdateGoodsSwitchModal {...ModalProps} />,

		/** 设置标签 */
		'SetOrderLabelModal': <SetOrderLabelModal {...ModalProps} isBatch={true} />,

		/** 手动拆单 */
		'SplitOrderModal': <SplitOrderModal {...ModalProps} />,

		/** 按照策略拆单 */
		'IntelligentSplittingStrategy': <IntelligentSplittingStrategy {...ModalProps} />,

		/** 手动合单 */
		'MergeOrdersModal': <MergeOrdersModal {...ModalProps} />,

		/** 智能合单 */
		'IntelligentMergeOrdersModal': <IntelligentMergeOrdersModal {...ModalProps} />,

		/** 导出订单手机号验证 */
		'ExportTelCodeModal': <VertifyExportCode {...ModalProps} />,

		/** 智能策略自动执行 */
		'AutoExecute': <AutoExecute {...ModalProps} />,

		/** 智能策略手动执行 */
		'ManualExecute': <ManualExecute {...ModalProps} />,

		/** 批量发货 */
		'BatchShip': <BatchShip {...ModalProps} />,

		/** 批量付款 */
		'BatchPayModal': <BatchPayModal {...ModalProps} />,

		/** 全部付款 */
		'AllPayModal': <AllPayModal {...ModalProps} />,

		/** 批量打印面单 */
		'BatchPrint': <BatchPrint {...ModalProps} />,

        /** 订单重算 */
		'WeightRecalculation': <WeightRecalculation {...ModalProps} />,

        /** 发货打印 */
		'DeliveryPrint': <DeliveryPrint {...ModalProps} />
	};
	return ModalComp[modalName] || null;
}

export default ActionMap;